Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Constants and Data Types
The Applet Object


Applet Security Structure

When you instantiate an applet using the JMNewAppletViewer function, you must pass a data structure that supplies security information for the applet. This data structure is defined by the JMAppletSecurity data type.

struct JMAppletSecurity { 
   UInt32 fVersion; 
   JMNetworkSecurityOptions fNetworkSecurity; 
   JMFileSystemOptions fFileSystemSecurity;
   Boolean fRestrictSystemAccess;
   Boolean fRestrictSystemDefine; 
   Boolean fRestrictApplicationAccess; 
   Boolean fRestrictApplicationDefine; 
};
Field Description
fVersion
The version of JManager. You should set this field to kJMVersion.
JMNetworkSecurityOptions
A flag indicating access privileges for applets connecting to networks. See "Applet Security Indicators" for a list of possible values for this field.
JMFileSystemOptions
A flag indicating applet access privileges to the local file system. See "Applet Security Indicators" for a list of possible values for this field.
fRestrictSystemAccess
If set to true, the applet cannot access system packages found in the mrj.security.system.access property. (The default packages in the property are com.apple.* and sun.*.)
fRestrictSystemDefine
If set to true, the applet cannot load system packages found in the mrj.security.system.define property. (The default packages in the property are com.apple.* and sun.*.)
fRestrictApplicationAccess
If set to true, the applet cannot access application packages found in the mrj.security.application.access property.
fRestrictApplicationDefine
If set to true, the applet cannot load application packages found in the mrj.security.application.define property.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997